import request from "@/utils/request";

// 查询当前可选课程信息列表
export function listCourseSelection(query) {
  return request({
    url: "/system/course_selection/list",
    method: "get",
    params: query,
  });
}

// 查询已选课程列表
export function listSelectedCourseList(query) {
  return request({
    url: "/system/course_selection/listSelectCourse",
    method: "get",
    params: query,
  });
}

// 抢课操作
export function robClasses(data) {
  return request({
    url: "/system/course_selection/robClasses",
    method: "put",
    data,
  });
}

// 退课操作
export function retreat(data) {
  return request({
    url: "/system/course_selection/retreat",
    method: "put",
    data,
  });
}
